package cn.aifeix.basic.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneLoginDto {
    // 手机号
    @NotBlank(message = "手机号不能为空")
    private String phone;
    // 短信验证码
    @NotBlank(message = "短信验证码不能为空")
    private String smsCode;
    @NotNull(message = "类型不能为空")
    private Integer type;
}
